package com.hunan.yllxy.repostitory.dao.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.hunan.yllxy.repostitory.entity.DakaContentInfo;
import com.hunan.yllxy.repostitory.entity.DakaOptionInfo;
import com.hunan.yllxy.repostitory.mapper.DakaOptionInfoMapper;
import com.hunan.yllxy.repostitory.dao.DakaOptionInfoDao;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 刘华
 * @since 2025-06-20
 */
@Service
public class DakaOptionInfoDaoImpl extends ServiceImpl<DakaOptionInfoMapper, DakaOptionInfo> implements DakaOptionInfoDao {
    @Override
    public List<DakaOptionInfo> findByContentId(String contentId) {
        LambdaQueryWrapper<DakaOptionInfo> query = Wrappers.lambdaQuery(this.entityClass);
        query.eq(DakaOptionInfo::getDakaContentId,contentId);
        return baseMapper.selectList(query);
    }
}
